<?php

namespace API\App\Action;

use Hx\Router;

class Index {

    public function main() {
        $urls = Router::getRules();
        $data = array();
        foreach ($urls as $u) {
            $u = explode('-', $u);
            $data[] = $u[1] . ':' . $u[0];
        }
        return array('API' => $data);
    }
}